package cmd

import (
	"gitee/kubehark/kubehark-client/pkg/oidc"
	"github.com/spf13/cobra"
)

func NewRoorCmd() *cobra.Command {
	code := oidc.NewBrowserFetcher()
	oidc.OidcCodeFetcher = code
	var Cmd = &cobra.Command{
		Use:   "kubehark",
		Short: "kubehark",
		Long:  `kubehark多集群管理客户端 `,
	}
	Cmd.AddCommand(NewRefereshTokenCmd())
	Cmd.AddCommand(NewSetUpCmd())
	Cmd.AddCommand(NewLoginCmd())
	return Cmd
}
